.qr-test-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40rpx 30rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 头部样式 */
.header {
  text-align: center;
  margin-bottom: 40rpx;
}

.title {
  display: block;
  font-size: 48rpx;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 16rpx;
}

.subtitle {
  display: block;
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

/* 二维码区域 */
.qr-section {
  margin-bottom: 40rpx;
}

.qr-wrapper {
  text-align: center;
}

.qr-canvas {
  width: 300rpx;
  height: 300rpx;
  border-radius: 16rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.qr-loading {
  width: 300rpx;
  height: 300rpx;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16rpx;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid rgba(255, 255, 255, 0.3);
  border-top: 4rpx solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20rpx;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 测试数据 */
.test-data {
  width: 100%;
  max-width: 600rpx;
  margin-bottom: 40rpx;
}

.data-card {
  background: #ffffff;
  border-radius: 20rpx;
  padding: 40rpx;
  box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.1);
}

.data-title {
  display: block;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 30rpx;
  text-align: center;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.data-item:last-child {
  border-bottom: none;
}

.label {
  font-size: 28rpx;
  color: #666;
  font-weight: 500;
  min-width: 200rpx;
}

.value {
  font-size: 24rpx;
  color: #333;
  max-width: 400rpx;
  word-break: break-all;
  text-align: right;
}

/* Scene参数测试区域 */
.scene-test-section {
  width: 100%;
  max-width: 600rpx;
  margin-bottom: 40rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30rpx;
}

.current-scene {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12rpx;
  padding: 20rpx;
  margin-bottom: 20rpx;
  text-align: center;
}

.scene-label {
  display: block;
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8rpx;
}

.scene-value {
  display: block;
  font-size: 28rpx;
  color: #ffffff;
  font-family: monospace;
  word-break: break-all;
}

.scene-input-section {
  margin-bottom: 20rpx;
}

.scene-input {
  width: 100%;
  height: 80rpx;
  background: #ffffff;
  border-radius: 12rpx;
  padding: 0 20rpx;
  font-size: 28rpx;
  color: #333;
  margin-bottom: 16rpx;
  box-sizing: border-box;
}

.btn-use-scene {
  width: 100%;
  height: 80rpx;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #ffffff;
  border-radius: 12rpx;
  font-size: 28rpx;
  border: none;
}

.btn-use-scene:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.4);
}

.scene-actions {
  display: flex;
  gap: 16rpx;
}

.btn-get-scene,
.btn-generate-scene {
  flex: 1;
  height: 80rpx;
  border-radius: 12rpx;
  font-size: 24rpx;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-get-scene {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: #ffffff;
}

.btn-get-scene:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(33, 150, 243, 0.4);
}

.btn-generate-scene {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #ffffff;
}

.btn-generate-scene:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(255, 152, 0, 0.4);
}

/* 操作按钮 */
.actions {
  width: 100%;
  max-width: 600rpx;
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.btn-primary, .btn-secondary, .btn-scan {
  width: 100%;
  height: 88rpx;
  border-radius: 44rpx;
  font-size: 32rpx;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #667eea;
  border: 2rpx solid #667eea;
}

.btn-secondary:active {
  background: #f5f5f5;
}

.btn-scan {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #ffffff;
}

.btn-scan:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(255, 152, 0, 0.4);
}

.btn-icon {
  margin-right: 12rpx;
  font-size: 32rpx;
}

/* 登录成功状态 */
.login-success {
  width: 100%;
  max-width: 600rpx;
  margin-bottom: 40rpx;
}

.success-card {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-radius: 20rpx;
  padding: 60rpx 40rpx;
  box-shadow: 0 20rpx 40rpx rgba(76, 175, 80, 0.3);
  text-align: center;
  color: #ffffff;
}

.success-icon {
  display: block;
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.success-title {
  display: block;
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 16rpx;
}

.success-message {
  display: block;
  font-size: 28rpx;
  opacity: 0.9;
}

/* 扫描结果 */
.scan-result {
  width: 100%;
  max-width: 600rpx;
  margin-top: 40rpx;
}

.result-card {
  background: #ffffff;
  border-radius: 20rpx;
  padding: 40rpx;
  box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.1);
}

.result-title {
  display: block;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
  text-align: center;
}

.result-content {
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 20rpx;
}

.result-text {
  font-size: 24rpx;
  color: #333;
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

.scene-actions-quick {
  margin-top: 20rpx;
  padding-top: 20rpx;
  border-top: 1rpx solid #eee;
}

.btn-use-current-scene {
  width: 100%;
  height: 80rpx;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: #ffffff;
  border-radius: 12rpx;
  font-size: 28rpx;
  border: none;
}

.btn-use-current-scene:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.4);
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .qr-test-container {
    padding: 20rpx 20rpx;
  }
  
  .data-card, .result-card {
    padding: 30rpx 20rpx;
  }
  
  .data-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .label {
    margin-bottom: 10rpx;
  }
  
  .value {
    text-align: left;
  }
} 